import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home/index.vue';

Vue.use(VueRouter);

  const routes = [
  {
      path: '/',
      meta: {
          footShow: true, // true显示，false隐藏
          title:"我的",
          keepAlive: true, //此组件要被缓存
      },
      name: 'myzoe',
      component: ()=> import('../views/myzoe/index.vue')
  },
  {
    path: '/creat',
    name: 'Home',
    meta: {
      footShow: true, // true显示，false隐藏
      title:"制作料"
    },
    component: Home
  },
  {
      path: '/Wodeliao',
      meta: {
          footShow: true, // true显示，false隐藏
          title:"..."
      },
      name: 'WodeliaoIndex',
      component: ()=> import('../views/Wodeliao/index.vue')
  },
  {
      path: '/demo',
      meta: {
          footShow: true, // true显示，false隐藏
          title:"我的料"
      },
      name: 'demo',
      component: ()=> import('../views/Home/demo.vue')
  },
  {
      path: '/log/bindtel',
      name: 'bindtel',
      meta:{
          title:"绑定手机号"
      },
      component: ()=> import('../views/log/bindtel.vue')
  },
  {
      path: '/log/login',
      name: 'weblogin',
      meta:{
          title:"登录"
      },
      component: ()=> import('../views/log/login.vue')
  },
  {
      path: '/log/register',
      name: 'webregister',
      meta:{
          title:"注册"
      },
      component: ()=> import('../views/log/register.vue')
  },
  {
      path: '/locked',
      name: 'locked',
      meta:{
          title:"注册"
      },
      component: ()=> import('../views/log/locked.vue')
  },
      {
          path: '/Wodeliao/detail1content/:id',
          name: 'detail1content',
          meta:{
              title:"..."
          },
          component: ()=> import('../views/Wodeliao/detail1content.vue')
      },
  {
      path: '/Wodeliao/wodeliaoxq/:id',
      name: 'wodeliaoxq',
      meta:{
          title:"详情"
      },
      component: ()=> import('../views/Wodeliao/detail1.vue')
  },

  {
      path: '/goods/goodsList',
      name: 'goodsList',
      meta:{
          title:"商品列表"
      },
      component: ()=> import('../views/goods/goodsList')
  },

  {
      path: '/CustomerService/CustomerService',
      name: 'CustomerService',
      meta:{
          title:"客服"
      },
      component: ()=> import('../views/CustomerService/CustomerService')
  },
      {
      path: '/goods/goodsDetails/:id',
      name: 'goodsDetails',
      meta:{
          title:"商品详情"
      },
      component: ()=> import('../views/goods/goodsDetails')
  },
      {
      path: '/goods/BusinessInfo/:id',
      name: 'BusinessInfo',
      meta:{
          title:"商家详情"
      },
      component: ()=> import('../views/goods/BusinessInfo')
  },
      {
      path: '/goods/orderDetails/:id',
      name: 'orderDetails',
      meta:{
          title:"商品详情"
      },
      component: ()=> import('../views/goods/orderDetails')
  },
  {
      path: '/Wodeliao/bushi',
      name: 'bushi',
      meta:{
          title:"补时/停更/延时"
      },
      component: ()=> import('../views/Wodeliao/bushi.vue')
  },
  {
      path: '/Wodeliao/dingshixiajia',
      name: 'dingshixiajia',
      meta:{
          title:"修改下架时间"
      },
      component: ()=> import('../views/Wodeliao/dingshixiajia.vue')
  },
  {
      path: '/Wodeliao/changeprice/:id/:price',
      name: 'changeprice',
      meta:{
          title:"修改售价"
      },
      component: ()=> import('../views/Wodeliao/changeprice.vue')
  },
      {
          path: '/Wodeliao/edit/:materialsid/:contentid',
          name: 'editliao',
          meta:{
              title:"修改料"
          },
          component: ()=> import('../views/Wodeliao/editliao.vue')
      },
  {
      path: '/Wodeliao/update/:id',
      name: 'updateliao',
      meta:{
          title:"更新料"
      },
      component: ()=> import('../views/Wodeliao/updateliao.vue')
  },
      {
      path: '/messageDetials/:id',
      name: 'messageDetials',
      meta:{
          title:"料审核"
      },
      component: ()=> import('../views/Wodeliao/messageDetials.vue')
  },
  {
      path: '/Wodeliao/womaideliaoxq/:id',
      name: 'womaideliaoxq',
      meta:{
          title:"..."
      },
      component: ()=> import('../views/Wodeliao/detail2.vue')
  },
  {
      path: '/Wodeliao/liaocomplain/:id',
      name: 'liaocomplain',
      meta:{
          title:"投诉"
      },
      component: ()=> import('../views/Wodeliao/liaocomplain.vue')
  },
  {
      path: '/Wodeliao/complainform',
      name: 'complainform',
      meta:{
          title:"投诉"
      },
      component: ()=> import('../views/Wodeliao/complainform.vue')
  },
  {
      path: '/Wodeliao/zaishouliebiao/:id',
      name: 'zaishouliebiao',
      meta:{
          title:"..."
      },
      component: ()=> import('../views/Wodeliao/zaishouliebiao.vue')
  },
  {
      path: '/myzoe/zhuye/:id',
      name: 'myzhuye',
      meta:{
          title:"..."
      },
      component: ()=> import('../views/myzoe/zhuye.vue')
  },
  {
      path: '/myzoe/guanzhu',
      name: 'myguanzhu',
      meta:{
          title:"我的关注"
      },
      component: ()=> import('../views/myzoe/guanzhu.vue')
  },
  {
      path: '/myzoe/fans',
      name: 'myfans',
      meta:{
          title:"我的粉丝"
      },
      component: ()=> import('../views/myzoe/fans.vue')
  },
  {
      path: '/myzoe/tixian',
      name: 'tixian',
      meta:{
          title:"提现"
      },
      component: ()=> import('../views/myzoe/tixian.vue')
  },{
      path: '/myzoe/tixianInfo',
      name: 'tixianInfo',
      meta:{
          title:"上传个人资料"
      },
      component: ()=> import('../views/myzoe/tixianInfo.vue')
  },{
      path: '/myzoe/supplementInfo',
      name: 'supplementInfo',
      meta:{
          title:"补充个人资料"
      },
      component: ()=> import('../views/myzoe/supplementInfo.vue')
  },{
      path: '/myzoe/recharge',
      name: 'recharge',
      meta:{
          title:"余额储值"
      },
      component: ()=> import('../views/myzoe/recharge.vue')
  },{
      path: '/myzoe/rechargelog',
      name: 'rechargelog',
      meta:{
          title:"充值记录"
      },
      component: ()=> import('../views/myzoe/rechargelog.vue')
  },
  {
      path: '/myzoe/clientlist',
      name: 'clientlist',
      meta:{
          title:"客户列表"
      },
      component: ()=> import('../views/myzoe/clientlist.vue')
  },
  {
      path: '/myzoe/clientdiscount/:id',
      name: 'clientdiscount',
      meta:{
          title:"客户折扣"
      },
      component: ()=> import('../views/myzoe/clientdiscount.vue')
  },
  {
      path: '/myzoe/setting',
      name: 'setting',
      meta:{
          title:"主页设置"
      },
      component: ()=> import('../views/myzoe/setting.vue')
  },
  {
      path: '/myzoe/account',
      name: 'account',
      meta:{
          title:"..."
      },
      component: ()=> import('../views/myzoe/account.vue')
  },
  {
      path: '/myzoe/income',
      name: 'income',
      meta:{
          title:"收入明细"
      },
      component: ()=> import('../views/myzoe/income.vue')
  },
  {
      path: '/myzoe/txrecord',
      name: 'txrecord',
      meta:{
          title:"..."
      },
      component: ()=> import('../views/myzoe/txrecord.vue')
  },
  {
      path: '/myzoe/daofenshucai',
      name: 'daofenshucai',
      meta:{
          title:"导粉素材"
      },
      component: ()=> import('../views/myzoe/daofenshucai.vue')
  },
  {
      path: '/myzoe/zhanjibiao',
      name: 'zhanjibiao',
      meta:{
          title:"战绩表"
      },
      component: ()=> import('../views/myzoe/zhanjibiao.vue')
  },
  {
      path: '/myzoe/zhanjibiaoxq/:id',
      name: 'zhanjibiaoxq',
      meta:{
          title:"战绩详情"
      },
      component: ()=> import('../views/myzoe/zhanjibiaoxq.vue')
  },
  {
      path: '/myzoe/creatzhanji',
      name: 'creatzhanji',
      meta:{
          title:"战绩新增"
      },
      component: ()=> import('../views/myzoe/creatzhanji.vue')
  },
  {
      path: '/myzoe/notice/:id',
      name: 'notice',
      meta:{
          // title:"红料大全"
      },
      component: ()=> import('../views/myzoe/notice.vue')
  },
  {
      path: '/myzoe/kefu',
      name: 'kefu',
      meta:{
          title:"在线客服"
      },
      component: ()=> import('../views/myzoe/kefu.vue')
  },
  {
      path: '/myzoe/rule',
      name: 'rule',
      meta:{
          title:"服务条款"
      },
      component: ()=> import('../views/myzoe/rule.vue')
  },
  {
      path: '/myzoe/getcode/:id',
      name: 'getcode',
      meta:{
          title:"红料大全"
      },
      component: ()=> import('../views/myzoe/getcode.vue')
  },
  {
      path: '/Wodeliao/buylist/',
      name: 'buylist',
      meta:{
          title:"购买记录"
      },
      component: ()=> import('../views/Wodeliao/buylist.vue')
  },
  {
      path: '/artdefault',
      name: 'artdefault',
      component: ()=> import('../views/Wodeliao/artdefault.vue')
  },
  {
      path: '/scan',
      name: 'scan',
      component: ()=> import('../views/myzoe/scan.vue')
  },
  {
      path: '/news/news',
      name: 'news',
      component: ()=> import('../views/news/news.vue')
  }
];

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})



export default router
